/*
 *
 * 公共样式
 */

//基础样式设置
@import "body";
//弹框样式
@import "popup-view";
//动画样式
@import "keyframes";
img {
  width: 100%;
  vertical-align: top;
}

html, body {
  overflow: hidden;
}

.block-view {
  margin: 0;
  padding: 0;
  position: relative;
}

// 灰度
.grayscale {
  opacity: 0.3;
  filter: grayscale(100%);
}
// 总容器
.main-content {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #e0ebf2;
  // 底部导航条（docker bar）
  .docker {
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    //width: 9.16rem;
    //height: 2.02rem;
    width: 8.02rem;
    height: 1.4rem;
    position: absolute;
    align-items: center;
    padding-top: 0.25rem;
    padding-left: 1.3rem;
    padding-right: 0.3rem;
    box-sizing: border-box;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-image: url("../images/docker-bg.png");
    justify-content: start;
    //padding-right: 0.5rem;
    // 导航条按钮组 （docker bar group）
    &__button-group {
      display: flex;
      align-items: center;
      .button {
        width: 0.84rem;
        height: 0.84rem;
        position: relative;
        & + .button {
          margin-left: 0.15rem;
        }
        &:first-child {
          width: 1rem;
          height: 1rem;
          margin-right: 0.15rem;
        }
        &:nth-child(2) {
          //margin-right: 0.15rem;
          &:after {
            top: 50%;
            left: 0;
            content: "";
            height: 70%;
            position: absolute;
            border-left: #CCCCCC 1px solid;
            transform: translate3d(-0.2rem, -50%, 0);
          }
        }
      }
    }
    .logo {
      width: 2.53rem;
      margin-left: 0.3rem;
    }
  }
  // 4m号样式
  .four_m_code {
    left: 0.5rem;
    bottom: 0.3rem;
    position: absolute;
    font-size: 0.18rem;
    &:before {
      content: "MAT-CN-2300000001 1.0-10/2023/*";
    }
  }
}

.guide-popup {
  .popup_mask {
    z-index: 9;
  }
  .popup_container {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-color: transparent;
  }
  &__docker-guide {
    right: 1.8rem;
    bottom: 1.1rem;
    width: 7.68rem;
    position: absolute;
    &_bg {
      right: 0;
      bottom: 0;
      width: 8.64rem;
      height: 1.55rem;
      position: absolute;
    }
  }
  &__prev-guide {
    top: 57.6%;
    left: 0.1rem;
    width: 3.86rem;
    position: absolute;
    transform: translateY(-50%);
  }
  &__next-guide {
    top: 54.5%;
    right: 0.1rem;
    width: 4.47rem;
    position: absolute;
    transform: translateY(-50%);
  }
}

.button_prev, .button_next {
  top: 50%;
  z-index: 80;
  width: 0.8rem;
  height: 0.8rem;
  position: absolute;
  border-radius: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  &:after {
    top: 50%;
    left: 50%;
    width: 40%;
    height: 40%;
    content: "";
    display: block;
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transform-origin: center;
  }
}

.button_prev {
  left: 0.5rem;
  &:after {
    border-top-width: 0;
    border-right-width: 0;
    transform: translate3d(-40%, -50%, 0) rotate(45deg);
  }
}

.button_next {
  right: 0.5rem;
  &:after {
    border-left-width: 0;
    border-bottom-width: 0;
    transform: translate3d(-70%, -50%, 0) rotate(45deg);
  }
}

// 文献弹框样式
.ref {
  &-head {
    padding-bottom: 0.1rem;
    margin: 0.1rem 0rem 0rem;
    //border-bottom: #333333 solid 3px;
    &__title {
      width: 1.805rem;
    }
    &__close {
      top: 0.2rem;
      right: 0.2rem;
      width: 0.82rem;
      position: absolute;
    }
  }
  &-content {
    flex: 1;
    overflow-x: hidden;
    overflow-y: scroll;
    padding-top: 0.3rem;
    box-sizing: border-box;
  }
}
// 文献弹框样式
.popup {
  &.ref {
    .popup_container {
      position: relative;
      border-radius: 0.4rem;
      background-color: white;
      &:before {
        height: 0;
        content: "";
        width: 100%;
        display: block;
        pointer-events: none;
        padding-bottom: 61.8%;
      }

      .ref-frame {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        padding: 0.5rem;
        position: absolute;
        box-sizing: border-box;
        flex-direction: column;
      }
    }
  }
  &.pdf {
    & .ref-head__close {
      z-index: 1000;
    }
    .popup_container {
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      transform: translate3d(0,0,0);
      .ref-frame {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        position: absolute;
      }
    }
  }
  &_container {
    &.flex-view {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      & .popup_container__table {
        padding: 0.5rem 0;
      }
    }
  }
}

.table-container {
  display: flex;
  min-height: 13rem;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.txt{
  width: 6.4rem;
  height: 0.6rem;
  left: 1rem;
  bottom:0.1rem;
  position: absolute;
  opacity: 1;
}


